package com.dj.ms.event.support;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * <br>
 * <p>事件重试任务配置信息</p>
 *
 * <br>
 * @author ZJG
 * @version 1.0
 * @date 2021/7/27 上午10:46
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "dj.ms.event.ex")
public class EventRetryTaskProperties {

    /**
     * AsyncEventBusExecutor thread pool core size
     * com.dj.ms.event.ex.core-ps
     */
    private Integer corePs = 5;

    /**
     * AsyncEventBusExecutor thread pool max size
     * com.dj.ms.event.ex.core-ps
     */
    private Integer maxPs = 20;

    /**
     * AsyncEventBusExecutor thread pool queue size
     * com.dj.ms.event.ex.queue-size
     */
    private Integer queueSize = 1000;


}
